<template>
  <div class="footer-wap">
    <div class="foot-bar flex yqlj-wrapper"  v-if="showHzhb">
      <div>
        <ul>
          <li class="hzhb">
            <span>合作伙伴</span>
            <img src="@/assets/hb.png" alt="">
          </li>
          <li class="yqlj">
            <div>
              <span>友情链接:</span>
              <span v-for="item in yqxzList" :key="item">
                {{item}}
              </span>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <div class="auto auto2 auto3">
      <div class="foot-bar flex">
        <div class="foot-l">
          <span href="handbook-list.html" target="_blank">关于我们</span>
          <span href="handbook-list2.html" target="_blank">权利声明</span>
          <span href="" target="_blank">联系我们</span>
          <span href="handbook.html" target="_blank">帮助中心</span>
          <span href="" target="_blank">反馈意见</span>
          <span @click="jumpTo('joinUs')">成为创作人</span>
        </div>
        <div class="foot-r">© 2021 bzuo Inc｜Your Priviacy Rights</div>
      </div>
      <div class="foot-cont flex align-c">
        <div class="foot-l">
          <p class="www-link">
            <span @click="gotoLink(1)">皖ICP备09011906号-23</span> 
            <span @click="gotoLink(2)">广播电视节目制作经营许可证（皖）字第00245号</span>
            <span @click="gotoLink(3)">皖公网安备 34012302001108</span>
            <span class="no-hove">若您的权利受到侵害，请发起投诉admin@bzuo.com</span>
          </p>
        </div>

        <div class="foot-r">
          <img src="@/assets/code.png" class="ww1" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "AppFooter",
  data() {
    return {
      showHzhb: true,
      yqxzList: [
          "正版图片",
          "音乐素材",
          "PPT模板下载",
          "高清视频素材",
          "PS素材",
          "素描",
          "CAD",
          "免费素材",
          "创想图库",
          "桌面壁纸",
          "办公PPT",
          "Veer图库",
          "PS教程网",
          "3D模型下载",
          "红动中国",
          "六图网设计",
          "图片钻戒品牌",
          "人人秀H5",
          "图片下载",
          "火星时代",
        ]
    }
  },
  mounted() {
    if(this.$route.path !== '/home') {
      this.showHzhb = false;
    }
  },
  methods: {
    jumpTo(page) {
      this.$router.push(`/VideoCenter/${page}`)
    },
    gotoLink(type) {
      switch (type) {
        case 1:
          window.open("https://beian.miit.gov.cn");
          break;
        case 2:

          window.open("http://bzuo.com/zzjy.jpg")
          break; 
        default: 
          window.open("http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51019002000262")   
      }
    },
  }
};
</script>

<style scoped>
.www-link span {
  display: inline-block;
  margin-right: 15px;
}
.footer-wap {
  padding: 0 0 2.4% 0;
  background: var(--footer-bg);
  font-size: var(--content);
  margin-top: 100px;
}

.hzhb img {
  margin-left: 80px;
}

.hzhb span {
  font-size: 20px;
  vertical-align: top;
}

.footer-wap .yqlj-wrapper.foot-bar {
  background: #f0f0f0;
  padding: 50px 0;
  margin: 0 auto;
}

.footer-wap .foot-bar {
  border-bottom: 1px solid #363636;
  padding: 15px 0;
}
.footer-wap .foot-bar span {
  display: inline-block;
  line-height: 20px;
}
.foot-l {
  flex: 1;
}
.yqlj-wrapper {
  text-align: center;
}
.yqlj-wrapper>div {
  width: 1200px;
  margin: 0 auto;
}
.yqlj-wrapper .yqlj span {
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
}
.yqlj-wrapper .yqlj div {
  width: 795px;
  display: inline-block;
  margin-left: 160px;
  vertical-align: top;
  text-align: left;
  margin-top: 20px;
}
.yqlj-wrapper .yqlj div span {
  margin-right: 16px;
  font-size: 14px;
}
.yqlj-wrapper .foot-l span {
  color: #444;
} 
.foot-l span {
  color: var(--footer-color);
  font-size: var(--content);
  margin-right: 10px;
  cursor: pointer;
}
.foot-l span:hover,
.foot-r,
.foot-cont .foot-l {
  color: var(--nav-color);
}
.foot-l .no-hove:hover {
  color: #fff;
}
.foot-r,
.foot-cont .foot-l {
  font-size: var(--content);
}
.foot-cont {
  padding-top: 1.6%;
}

.foot-cont p {
  padding-bottom: 4px;
}
.foot-cont .foot-r {
  width: 66px;
  flex: 0 0 66px;
}
.auto2.auto3 {
  margin-top: 1%;
}
.auto2 {
  width: 1200px;
  margin: 8% auto 0 auto;
}
</style>
